package jinyilw.tools.net.dev;

public class DataObfuscation implements DataManipulator
{

	public DataObfuscation()
	{
	}

	public byte[] manipulate(byte[] data)
	{
		byte tmp;
		int half = data.length / 2;

		for (int i = 0; i < half; i++)
		{
			tmp = data[i];

			data[i] = data[data.length - i - 1];
			data[data.length - i - 1] = tmp;
		}

		return data;
	}

	public byte[] deManipulate(byte[] data)
	{
		return this.manipulate(data);
	}

}
